<div>
       <h3><%=link_to  @post.title, @post %></h3>
       <p><%=h(@post.body) %></p>
       <p>
          <%= @post.published %>
        </p>
        <p>
          <%= @category.name %>
        </p>
        <p><%= @post.tag_id %><small>
       (<%= link_to '编辑文章', edit_admin_post_path(@post) %>)
       (<%= link_to '删除文章', admin_post_path(@post), :confirm => 'Are you sure?', :method => :delete %>)
       </small>
       </p>
</div>

<h3> 回复列表 </h3>
<% for comment in @post.comments %>
    <%= comment.body %>
    <%= link_to '删除回复', admin_post_comment_path(@post, comment), :confirm => 'Are you sure?', :method => :delete %>
    <hr />
<% end %>

<%#= render  :partial =>  @comment = Comment.new, :locals => {:button_name => '确定'}  %>


<%= link_to '编辑文章', edit_admin_post_path(@post) %> |
<%= link_to '回到文章列表', admin_posts_path %>

